import type { PageParams } from "../global";

// export type AddressVo = {
// 	id : string | number;
// 	code : string | number;
// 	parentCode : string | number;
// 	name : string;
// }
// export type AddressResponse={
// 	code: string | number;
// 	msg: string;
// 	rows: MemberAddress[];
// }

export type Address = {
	/*收货人姓名*/
	name : string;	
	/*手机号码*/
	phone : string;
	/*地址属性：家，公司*/
	tagName : string;
	/*省市区*/
	fullLocation : string;
	/*详细地址*/
	fullAddress : string;
	/*是否默认地址*/
	isDefault : number | string;
}
/* 返回数据类型 */
export type MemberAddress = Address & {
	/*id*/
	id : number | string;
	/*用户id*/
	userId : number | string;
	// provinceCode: number | string;
	// cityCode: number | string;
	// districtCode: number | string;
}
/* 增加修改参数 */
export type MemberAddressParams = Address & {
	/*用户id*/
	userId : number | string;
	/*地址属性：家，公司*/
	tagName ?: string;
	/*省*/
	provinceCode ?: string;
	/*市*/
	cityCode ?: string;
	/*区*/
	districtCode ?: string;
}
/* 请求传递参数 */
export type AddressQuery = PageParams & {
	queryParams: any;
	userId ?: string | number;
};